dofile ("libNumericUpDown.lua")

NumericUpDown.init (1, 5, 5, 50, 15, 50, 0, 100, 1)
NumericUpDown.init (2, 5, 25, 100, 30, 100, 0, 200, 2)

while not Keys.newPress.Start do
   
  Controls.read()
  
  val1 = NumericUpDown.value (1)
  valMax1 = NumericUpDown.valueMax (1)
  valMin1 = NumericUpDown.valueMin (1)
  step1 = NumericUpDown.step (1)
  
  val2 = NumericUpDown.value (2)
  valMax2 = NumericUpDown.valueMax (2)
  valMin2 = NumericUpDown.valueMin (2)
  step2 = NumericUpDown.step (2)
  
  startDrawing()
    
    NumericUpDown.draw (1)
    NumericUpDown.draw (2)
    
    screen.print (SCREEN_UP, 5, 5, "NumericUpDown 1 : "..valMin1.." < "..val1.." > "..valMax1.." by "..step1.."")
    screen.print (SCREEN_UP, 5, 15, "NumericUpDown 2 : "..valMin2.." < "..val2.." > "..valMax2.." by "..step2.."")
    
  stopDrawing()

end

NumericUpDown.clear (1)
NumericUpDown.clear (2)

